package com.todo.pro.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.todo.pro.captcha.CaptchaUtil;

/**
 * <p>
 * 图像验证码
 * </p>
 *
 * @author SiZhongxia
 * @since 2017-12-27
 */
@Controller
@RequestMapping("captcha")
public class CaptchaController extends BaseController {

	@RequestMapping(value = { "image" }, method = { RequestMethod.GET })
	public void index(HttpServletRequest request, HttpServletResponse response) {
		try {
			CaptchaUtil.out(request, response);
		} catch (IOException e) {
		}
	}

}
